representation of graph in data structure